package cn.starrysky108.simpleerp.inventory.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 仓库库存分表
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("inventory_warehouse_stock")
@ApiModel(value = "InventoryWarehouseStock对象", description = "仓库库存分表")
public class InventoryWarehouseStock extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "商品id")
    @TableField("goods_id")
    private Long goodsId;

    @ApiModelProperty(value = "所在仓库")
    @TableField("warehouse_id")
    private Long warehouseId;

    @ApiModelProperty(value = "库存数量")
    @TableField("stock")
    private Integer stock;

    @ApiModelProperty(value = "备注")
    @TableField("note")
    private String note;

    @ApiModelProperty(value = "预警数量")
    @TableField("warning_count")
    private Integer warningCount;

    @ApiModelProperty(value = "操作人id")
    @TableField("user_id")
    private Long userId;



}
